package com.cyan.note.dto.manager.dashboard;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 最近活动DTO
 * 
 * @author ZhangzhenYu
 * @since 2025-01-15
 */
@Data
public class RecentActivityDTO {

    /**
     * 活动ID
     */
    private Long activityId;

    /**
     * 活动类型
     */
    private String activityType;

    /**
     * 活动标题
     */
    private String title;

    /**
     * 活动描述
     */
    private String description;

    /**
     * 操作人
     */
    private String operatorName;

    /**
     * 相关对象ID
     */
    private Long relatedId;

    /**
     * 相关对象类型
     */
    private String relatedType;

    /**
     * 相关对象名称
     */
    private String relatedName;

    /**
     * 活动时间
     */
    private LocalDateTime activityTime;

    /**
     * 活动图标
     */
    private String icon;

    /**
     * 活动颜色
     */
    private String color;

    /**
     * 时间显示
     */
    private String timeDisplay;

    /**
     * 操作链接
     */
    private String actionUrl;

    /**
     * 活动类型常量
     */
    public static class ActivityType {
        public static final String ORDER_CREATE = "order_create";
        public static final String ORDER_ASSIGN = "order_assign";
        public static final String ORDER_COMPLETE = "order_complete";
        public static final String ORDER_CANCEL = "order_cancel";
        public static final String PAYMENT_RECEIVED = "payment_received";
        public static final String WORKER_JOIN = "worker_join";
        public static final String CUSTOMER_REGISTER = "customer_register";
        public static final String SERVICE_CREATE = "service_create";
        public static final String COMPLAINT_SUBMIT = "complaint_submit";
    }
}